﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.Bas;
using nERP.Model.Po;

namespace nERP.ViewModel.Wms.BuyInWarehouseDetailVMs
{
    public partial class BuyInWarehouseDetailBatchVM : BaseBatchVM<BuyInWarehouseDetail, BuyInWarehouseDetail_BatchEdit>
    {
        public BuyInWarehouseDetailBatchVM()
        {
            ListVM = new BuyInWarehouseDetailListVM();
            LinkedVM = new BuyInWarehouseDetail_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class BuyInWarehouseDetail_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._BuyInWarehouseDetail._Seq")]
        public int? Seq { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._BuyInWarehouse")]
        public string BuyInWarehouseId { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._Warehouse")]
        public string WarehouseId { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._Buy")]
        public string BuyId { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._BuyDetail")]
        public string BuyDetailId { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._Goods")]
        public string GoodsId { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._GoodsName")]
        public string GoodsName { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._GoodsSpec")]
        public string GoodsSpec { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._GoodsUnit")]
        public string GoodsUnit { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._BuyInNumber")]
        public decimal? BuyInNumber { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._BuyInWarehouseDetail._Status")]
        public dStatusTypeEnum? Status { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}